package com.appspot.zarm.transfer;

import com.google.gson.Gson;

public class JsonTransferer implements Transferer{

	@Override
	public String transfer(Object object) {
		GamesListExternalizer gamesListExternalizer = (GamesListExternalizer) object;
		return new Gson().toJson(gamesListExternalizer.getGamesList());
	}

	@Override
	public Object transfer(String rawData) {
		throw new UnsupportedOperationException();
	}
	
}
